/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;
import olympicgameslogic.ClassificationType.MEASUREUNIT;

/**
 *
 * @author 75
 */
public class ResultTime extends Result implements Serializable{

   private olympicgameslogic.TimeResult time;

   public ResultTime() {
   }

   public ResultTime(MEASUREUNIT unit) {
      super(unit);
   }

   public ResultTime(TimeResult time) {
      this.time = time;
   }

   public ResultTime(TimeResult time, MEASUREUNIT unit) {
      super(unit);
      this.time = time;
   }

   /**
    * @return the time
    */
   public olympicgameslogic.TimeResult getTime() {
      return time;
   }

   /**
    * @param time the time to set
    */
   public void setTime(olympicgameslogic.TimeResult time) {
      this.time = time;
   }

   @Override
   public String toString() {
      return "" + this.time;
   }

   @Override
   public boolean isEqual(Object obj) {
      return (time.isEqual(((ResultTime) obj).getTime()));
   }
}
